package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MingSysconfMapper;
import com.ruoyi.system.domain.MingSysconf;
import com.ruoyi.system.service.IMingSysconfService;

/**
 * 服务配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-12
 */
@Service
public class MingSysconfServiceImpl implements IMingSysconfService 
{
    @Autowired
    private MingSysconfMapper mingSysconfMapper;

    /**
     * 查询服务配置
     * 
     * @param id 服务配置主键
     * @return 服务配置
     */
    @Override
    public MingSysconf selectMingSysconfById(Long id)
    {
        return mingSysconfMapper.selectMingSysconfById(id);
    }

    /**
     * 查询服务配置列表
     * 
     * @param mingSysconf 服务配置
     * @return 服务配置
     */
    @Override
    public List<MingSysconf> selectMingSysconfList(MingSysconf mingSysconf)
    {
        return mingSysconfMapper.selectMingSysconfList(mingSysconf);
    }

    /**
     * 新增服务配置
     * 
     * @param mingSysconf 服务配置
     * @return 结果
     */
    @Override
    public int insertMingSysconf(MingSysconf mingSysconf)
    {
        return mingSysconfMapper.insertMingSysconf(mingSysconf);
    }

    /**
     * 修改服务配置
     * 
     * @param mingSysconf 服务配置
     * @return 结果
     */
    @Override
    public int updateMingSysconf(MingSysconf mingSysconf)
    {
        return mingSysconfMapper.updateMingSysconf(mingSysconf);
    }

    /**
     * 批量删除服务配置
     * 
     * @param ids 需要删除的服务配置主键
     * @return 结果
     */
    @Override
    public int deleteMingSysconfByIds(Long[] ids)
    {
        return mingSysconfMapper.deleteMingSysconfByIds(ids);
    }

    /**
     * 删除服务配置信息
     * 
     * @param id 服务配置主键
     * @return 结果
     */
    @Override
    public int deleteMingSysconfById(Long id)
    {
        return mingSysconfMapper.deleteMingSysconfById(id);
    }
}
